﻿#region Copyrigth and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ezsocio
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DusonFramework.ContactService.Email {
    public interface IEmailService {
        #region Fields

        #endregion

        #region Constructors

        #endregion

        #region Properties
        /// <summary>
        /// such as yahoo.com,126.com,sina.com.cn
        /// </summary>
        string EmailSystem{get;}
        /// <summary>
        /// start url of login
        /// </summary>
        string StartUrl { get; }
        /// <summary>
        /// the encoding of the website's pages
        /// </summary>
        Encoding DefaultEncoding {
            get;
        }
        #endregion

        #region Events

        #endregion

        #region Methods
        /// <summary>
        /// get contracts by username and pwd
        /// </summary>
        /// <param name="userName">the account username to get</param>
        /// <param name="pwd">the account password to get</param>
        /// <returns></returns>
        MailContractCollection GetContracts(string userName, string pwd);
        #endregion
    }
}
